/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2025/6/23
 * Time: 23:04
 */

#ifndef SPELL_H
#define SPELL_H
#include "../affiliate/SpriteAnim.h"
#include "../core/ObjectWorld.h"

class Spell : public ObjectWorld
{
protected:
    SpriteAnim * sprite_ {nullptr};
    float        damage_ {60.0f};

public:
    static Spell * AddSpellChild(Object * _parent, const std::string & _file_path, glm::vec2 _pos, float _damage, float _scale = 1.0f, Anchor _anchor = Anchor::CENTER);

    void Update(float _dt) override;
    void Attack();
};

#endif//SPELL_H
